﻿@model IEnumerable<T6._2.Models.Users>

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>用户列表</title>
</head>
<body>
    <p>
        @Html.ActionLink("添加新用户", "Create")
    </p>
    <table class="table">
        <tr>
            <th>
                用户名

            </th>
            <th>
               密码
            </th>
            <th>
                邮箱
            </th>
            <th>
                昵称
            </th>
            <th>
                QQ
            </th>
            <th>
                手机
            </th>
            <th>
                安全问题
            </th>
            <th>
                安全密码
            </th>
            <th></th>
        </tr>
    
    @foreach (var item in Model) {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.username)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.pwd)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.email)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.nick)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.QQ)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.phone)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.question)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.secPwd)
            </td>
            <td>
                @Html.ActionLink("编辑", "Edit", new { id=item.userid }) |
                @Html.ActionLink("查看", "Details", new { id=item.userid }) |
                @Html.ActionLink("删除", "Delete", new { id=item.userid })
            </td>
        </tr>
    }
    
    </table>
</body>
</html>
